Skip to content

638 khiopscore train predictor function documentation about sample percentage parameter - #648

Merged
popescu-v merged 2 commits into
mainfrom
638-khiopscore-train_predictor-function-documentation-about-sample_percentage-parameter
Nov 23, 2026
Merged

popescu-v merged 2 commits into
mainfrom
638-khiopscore-train_predictor-function-documentation-about-sample_percentage-parameter

Conversation

@popescu-v

@popescu-v popescu-v commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

closes #638


TODO Before Asking for a Review

  • Rebase your branch to the latest version of main (or main-v10)
  • Make sure all CI workflows are green
  • When adding a public feature/fix: Update the Unreleased section of CHANGELOG.md (no date)
  • Self-Review: Review "Files Changed" tab and fix any problems you find
  • API Docs (only if there are changes in docstrings, markdown files or samples):
    • Check the docs build without warning: see the log of the API Docs workflow
    • Check that your changes render well in HTML: download the API Docs artifact and open index.html
    • If there are any problems it is faster to iterate by building locally the API Docs

State that one can start with 0 for initial analysis.

related_to #638
@popescu-v
popescu-v force-pushed the 638-khiopscore-train_predictor-function-documentation-about-sample_percentage-parameter branch from bf35ecf to d12d20f Compare November 18, 2026 18:38
@popescu-v
popescu-v marked this pull request as ready for review November 18, 2026 18:38
@popescu-v
popescu-v requested a review from marcboulle November 18, 2026 18:38

@marcboulle marcboulle left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Petites remarques mineures

Comment thread khiops/core/api.py Outdated

selection_value: str or int or float, default ""
See `selection_variable` option above. Ignored if equal to "".

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il y a déjà une note pour selection_variable.
Celle ci est inutile (cf. autre fonction de l'API, ou cette redondance est absente)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. Note removed.

Comment thread khiops/core/api.py Outdated
is `True`.
sample_percentage : float, default 70.0
See the `sampling_mode` option below.
Percentage of samples retained during exploratory analysis and model

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je garderais le même commentaire laconique partout, celui de check_database

       Percentage of samples retained. See also the `sampling_mode` option
        below.

        !!! note

            A selection variable can also be applied to select samples, via the
            `selection_variable` parameter (see below). The effects are
            orthogonal and additive.

Pourquoi:

  • c'est plus simple et concis
  • c'est plus proche de la GUI, ou ce paramètre unique est utilisé par toutes les action
  • préciser le contexte during exploratory analysis and model training et inutile et redondant, puisque l'on sait de quelle fonction on est le paramètre (on ne reprécise pas le contexte pour chaque paramètre de la fonction)
  • avoir exactement le même texte d'explication permettra lors du refactoring par extraction automatique des prototypes et documentations de l'API d'implémenter des check de type linter, pour vérifier la cohérence des paramètres inter-fonction

Domaine d'application: toutes les fonctions de l'API et des helpers utilisant ce paramètre

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, done.

@popescu-v
popescu-v force-pushed the 638-khiopscore-train_predictor-function-documentation-about-sample_percentage-parameter branch from d12d20f to fe36caa Compare November 20, 2026 10:38
@popescu-v
popescu-v requested a review from marcboulle November 20, 2026 10:38

@marcboulle marcboulle left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@popescu-v
popescu-v merged commit 75bae1e into main Nov 23, 2026
9 checks passed
@popescu-v
popescu-v deleted the 638-khiopscore-train_predictor-function-documentation-about-sample_percentage-parameter branch November 23, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

khiops.core train_predictor() function documentation about sample_percentage parameter

2 participants